package com.ruoyi.system.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;

/**
 * 学生信息表 student
 * 
 * @author ruoyi
 */
public class Student extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @Excel(name = "主键id", cellType = ColumnType.NUMERIC)
    private Long id;

    /** 学号 */
    @Excel(name = "学号")
    private String num;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String program;

    /** 班级 */
    @Excel(name = "班级")
    private String className;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String way;

    /** 视频地址 */
    private String video;

    /** 图片地址 */
    private String pic;

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    @NotBlank(message = "学号不能为空")
    @Size(min = 0, max = 255, message = "学号不能超过255个字符")
    public String getNum()
    {
        return num;
    }

    public void setNum(String num)
    {
        this.num = num;
    }

    @NotBlank(message = "姓名不能为空")
    @Size(min = 0, max = 255, message = "姓名不能超过255个字符")
    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    @Size(min = 0, max = 255, message = "项目名称不能超过255个字符")
    public String getProgram()
    {
        return program;
    }

    public void setProgram(String program)
    {
        this.program = program;
    }

    @Size(min = 0, max = 255, message = "班级不能超过255个字符")
    public String getClassName()
    {
        return className;
    }

    public void setClassName(String className)
    {
        this.className = className;
    }

    @Size(min = 0, max = 255, message = "联系方式不能超过255个字符")
    public String getWay()
    {
        return way;
    }

    public void setWay(String way)
    {
        this.way = way;
    }

    @Size(min = 0, max = 255, message = "视频地址不能超过255个字符")
    public String getVideo()
    {
        return video;
    }

    public void setVideo(String video)
    {
        this.video = video;
    }

    @Size(min = 0, max = 255, message = "图片地址不能超过255个字符")
    public String getPic()
    {
        return pic;
    }

    public void setPic(String pic)
    {
        this.pic = pic;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("num", getNum())
            .append("name", getName())
            .append("program", getProgram())
            .append("className", getClassName())
            .append("way", getWay())
            .append("video", getVideo())
            .append("pic", getPic())
            .append("createBy",getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
